home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / snowboard.swf / scripts / frame_1 / DoAction_2.as next >
Text File  |  2007-01-15  |  1KB  |  48 lines

  1. onEnterFrame = function()
  2. {
  3.    _root.createEmptyMovieClip("line",2);
  4.    xx = _root.ball._x + 50 - _root.point1._x;
  5.    yy = _root.ball._y + 50 - _root.point1._y;
  6.    with(line)
  7.    {
  8.       lineStyle(2,16777215,100);
  9.       _x = _root.point1._x;
  10.       _y = _root.point1._y;
  11.       moveTo(xx,yy);
  12.       lineTo(xx / xx,yy / yy);
  13.    }
  14.    _root.createEmptyMovieClip("line2",3);
  15.    xx2 = _root.ball._x - 53 - _root.point2._x;
  16.    yy2 = _root.ball._y + 52 - _root.point2._y;
  17.    with(line2)
  18.    {
  19.       lineStyle(2,16777215,100);
  20.       _x = _root.point2._x;
  21.       _y = _root.point2._y;
  22.       moveTo(xx2,yy2);
  23.       lineTo(xx2 / xx2,yy2 / yy2);
  24.    }
  25.    _root.createEmptyMovieClip("line3",4);
  26.    xx3 = _root.ball._x - 54 - _root.point3._x;
  27.    yy3 = _root.ball._y - 54 - _root.point3._y;
  28.    with(line3)
  29.    {
  30.       lineStyle(2,16777215,100);
  31.       _x = _root.point3._x;
  32.       _y = _root.point3._y;
  33.       moveTo(xx3,yy3);
  34.       lineTo(xx3 / xx3,yy3 / yy3);
  35.    }
  36.    _root.createEmptyMovieClip("line4",5);
  37.    xx4 = _root.ball._x + 50 - _root.point4._x;
  38.    yy4 = _root.ball._y - 54 - _root.point4._y;
  39.    with(line4)
  40.    {
  41.       lineStyle(2,16777215,100);
  42.       _x = _root.point4._x;
  43.       _y = _root.point4._y;
  44.       moveTo(xx4,yy4);
  45.       lineTo(xx4 / xx4,yy4 / yy4);
  46.    }
  47. };
  48.